<extend name="./App/Home/View/Manage/layout.html" />
<block name="content">
    <!--左侧边-->
    <div class="left-bg">

        <div class="left-title">
            <span>E课堂</span>
        </div>

        <ul class="left-list">
           <li><a href="{:U('Manager/categoryList')}" class="left-a ">课程分类</a></li>
            <li><a href="{:U('Manager/classList')}" class="left-a left-aChg">课程管理</a></li>
            <li><a href="{:U('Manager/userList',array('status'=>1))}" class="left-a ">用户列表</a></li>
            <li><a href="{:U('Manager/compereList',array('status'=>3))}" class="left-a ">主持人列表</a></li>
            <li><a href="{:U('Manager/teachList',array('status'=>2))}" class="left-a  ">讲师列表</a></li>
        </ul>
    </div>

    <!--右侧内容-->
    <div class="right-bg">
        <!--头部-->
        <!-- <include file="./App/Home/View/Manage/top.html"/> -->
        <!--主体内容-->
        <div class="content-wrap">
            <a href="{:U('Manager/classList')}" class="user-itemBtn"><i class="Hui-iconfont">&#xe67d;</i>&nbsp;返回 </a>

            <div class="user-itemWrap J-li" style="height:500px;">
              <form action="{:U('Manager/postClass')}" id="myForm" method="post">
              
              <div class="login-text">
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程标题：</span>
                     &nbsp;&nbsp;&nbsp;<input type="text"  name="class[title]"  value="{$classInfo.title}"  class="login-textInput J-name">
                </div>
                 <!--  <div class="login-text">
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程图片：</span>
                     &nbsp;&nbsp;&nbsp;<input type="text"  name="class[thumb]"  value="{$classInfo.thumb}"  class="login-textInput J-name">
                </div> -->
                 &nbsp;&nbsp;&nbsp;
                 <div class="login-text">
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程描述：</span>
                     &nbsp;&nbsp;&nbsp;<input type="text"  name="class[description]"  value="{$classInfo.description}"  class="login-textInput J-name">
                </div> &nbsp;&nbsp;&nbsp;
                 <div class="login-text">
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程内容：</span>
                     &nbsp;&nbsp;&nbsp;<input type="text"  name="class[content]"  value="{$classInfo.content}"  class="login-textInput J-name">
                </div> &nbsp;&nbsp;&nbsp;
                
                <div class="login-text">   
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">讲师：</span>
                     &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<select name="class[uid]"  style="width:170px;">
                     					  <volist name="userList" id="vo">
                     					  	  <option value="{$vo.id}" <if condition="$vo.id eq $classInfo['uid']">selected = "selected"</if>>{$vo.nickname}</option>
                     					  </volist>
                     					</select>
                </div> &nbsp;&nbsp;&nbsp;
                
                 <div class="login-text">   
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程分类：</span>
                     &nbsp;&nbsp; <select name="class[cateid]"  style="width:170px;">
                     					  <volist name="cateList" id="vo">
                     					  	  <option value="{$vo.id}" <if condition="$vo.id eq $classInfo['cateid']">selected = "selected"</if>>{$vo.name} </option>
                     					  </volist>
                     					</select>
                </div> &nbsp;&nbsp;&nbsp;
                
                
                
                
                 <div class="login-text">
                
                   <div class="plat-capTime-Wrap">
                    &nbsp;&nbsp;&nbsp; <span style="font:20px;">开始时间：</span>
                   &nbsp;&nbsp;&nbsp;<input type="text" name="class[starttime]" value="{$classInfo.starttime}" class="plat-capTime Wdate J-stime" maxlength="10" id="OKtime" onclick="WdatePicker({dateFmt:'yyyyMMdd',maxDate:'%y-%M-%d'})">
                </div>
                </div> &nbsp;&nbsp;&nbsp;
                <div class="login-text">   
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程状态：</span>
                     &nbsp;&nbsp;&nbsp;<select name="class[status]" style="width:170px;">
                     							<option value="1" <if condition="$classInfo.status eq 1">selected = "selected"</if>>未开始</option>
                     							<option value="2" <if condition="$classInfo.status eq 2">selected = "selected"</if>>报名中</option>
                     							<option value="3" <if condition="$classInfo.status eq 3">selected = "selected"</if>>讲课中</option>
                     							<option value="4" <if condition="$classInfo.status eq 4">selected = "selected"</if>>已结束</option>
                     					</select>
                </div> &nbsp;&nbsp;&nbsp;
                
                
                <div class="login-text">
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程原价：</span>
                     &nbsp;&nbsp;&nbsp;<input type="text"  name="class[oldprice]"  value="{$classInfo.oldprice}"  class="login-textInput J-name">
                </div> &nbsp;&nbsp;&nbsp;
                <div class="login-text">
                    &nbsp;&nbsp;&nbsp;<span style="font:20px;">课程现价：</span>
                     &nbsp;&nbsp;&nbsp;<input type="text"  name="class[nowprice]"  value="{$classInfo.nowprice}"  class="login-textInput J-name">
                </div>
                <br/>
                <br/>
				  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				  <input type="hidden" name="id" value="{$classInfo.id}"/>
				  <input type="submit" name="保存"/>
                </form>
                <input type="hidden" value="{$classInfo['id']}" class="J-id">
            </div>

        </div>
    </div>
    <script>seajs.use("common/userPc/user")</script>
    <script language="javascript" type="text/javascript" src="__PUBLIC__/assets/js/jquery/My97DatePicker/WdatePicker.js"></script>


    <script>seajs.use('common/platformPc/capital')</script>
</block>